import request from '../utils/request';

// 1. 封装API函数
export const getArticlesAPI = (channel_id: number) => {
  return request({
    url: '/v1_0/articles',
    params: {
      channel_id,
      timestamp: Date.now,
    },
  });
};
